import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class DistanceWidget extends StatelessWidget {
  final num distance;

  const DistanceWidget({Key key, this.distance}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.all(5),
      margin: EdgeInsets.only(top: 20,left: 50),
      decoration: BoxDecoration(
        borderRadius: BorderRadius.all(Radius.circular(20)),
        border: Border.all(width: 1.5,color: Color(0xffA0BD34))
      ),
      child: Text("   距離 ＜${distance}m   ",style: TextStyle(
        color: Color(0xffA0BD34),
        fontWeight: FontWeight.w500,
        fontSize: ScreenUtil().setSp(12)
      ),),
    );
  }
}
